import request from '@/utils/request'

// 查询区/县域内的商圈列表
export function listCommercial(query) {
  return request({
    url: '/house/commercial/list',
    method: 'get',
    params: query
  })
}

// 查询区/县域内的商圈详细
export function getCommercial(id) {
  return request({
    url: '/house/commercial/' + id,
    method: 'get'
  })
}

// 新增区/县域内的商圈
export function addCommercial(data) {
  return request({
    url: '/house/commercial',
    method: 'post',
    data: data
  })
}

// 修改区/县域内的商圈
export function updateCommercial(data) {
  return request({
    url: '/house/commercial',
    method: 'put',
    data: data
  })
}

// 删除区/县域内的商圈
export function delCommercial(id) {
  return request({
    url: '/house/commercial/' + id,
    method: 'delete'
  })
}
